<?php
class Tag extends AppModel {

    public $validate = array(
        'name' => array('notEmpty')
    );

    public $hasAndBelongsToMany = array(
    'Article' => array('className' => 'Article',
    'joinTable' => 'articles_tags',
    'foreignKey' => 'tag_id',
    'associationForeignKey' => 'article_id',
    'conditions' => 'visible=1',
    'fields' => '',
    'order' => 'created desc',
    'limit' => '',
    'offset' => '',
    'unique' => '',
    'finderQuery' => '',
    'deleteQuery' => '',
    'insertQuery' => ''),
    );

}
?>